package com.zhiwei.jenkins.common.basics;

import javax.validation.constraints.Min;

/**
 * @Description: 带分页的请求实体
 * @Author: wyjun
 * @UpdateDate: 2019/11/14 9:55
 * @Version: 1.0
 */
public class BasePage extends Base {


    private static final long serialVersionUID = 8349264566466500778L;

    @Min(value = 1, message = "条数必须大于0")
    private Integer pageSize = 10;

    @Min(value = 1, message = "页码必须大于0")
    private Integer pageNum = 1;

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }
}
